﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MyBlog.BusinessInterface;
using MyBlog.Model;
using MyBlog.ServiceInterface;

namespace MyBlog.Service
{
    public class SysInfoService : ISysInfoService
    {
        IBusinessSysInfo _business;

        public SysInfoService(IBusinessSysInfo business)
        {
            _business = business;
        }

        public void AddAgree(int type)
        {
            _business.AddAgree(type);
        }

        public void AddRead(int type)
        {
            _business.AddRead(type);
        }

        public SysInfoModel Get(int type)
        {
            return _business.Get(type);
        }
    }
}
